<template>
  <div>
    <model :visible="isShow" @confirm="confirm" @cancel="cancel">
      <template slot="title">
        <h1>需要确认</h1>
      </template>
      <template slot="body">
        <h3>请选择您的操作</h3>
      </template>
    </model>
    <button @click="show">点击弹出model</button>
  </div>
</template>
<script>
import model from "./model.vue";
//引入公共样式
import modelMix from "./modelMix";
export default {
  mixins: [modelMix],
  components: {
    model,
  },
};
</script>
